package com.czxy.domain;

import lombok.Data;
import lombok.ToString;

import javax.persistence.Id;
import javax.persistence.Table;


/**
 * @author zhangmengxiang1@itcast.cn
 * @version 1.0
 * @date 2020/1/29
 */
@Table(name = "user_management")
public class User {
    /*
    * CREATE TABLE `user_management` (
  `uid` int(11) NOT NULL AUTO_INCREMENT,
  `uname` varchar(32) DEFAULT NULL,
  `gender` int(11) DEFAULT NULL,
  `iphone` varchar(32) DEFAULT NULL,
  `typeid` int(11) DEFAULT NULL,
  `idnumber` varchar(32) DEFAULT NULL,
  `state` int(11) DEFAULT NULL,
  PRIMARY KEY (`uid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8
    * */
    @Id
    private Integer uid;
    private String uname;
    private String upassword;
    private Integer gender;
    private String iphone;
    private Integer typeid; //护照id
    private String idnumber;
    private Integer state;

    private CertificateType certificateType;

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUpassword() {
        return upassword;
    }

    public void setUpassword(String upassword) {
        this.upassword = upassword;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getIphone() {
        return iphone;
    }

    public void setIphone(String iphone) {
        this.iphone = iphone;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public String getIdnumber() {
        return idnumber;
    }

    public void setIdnumber(String idnumber) {
        this.idnumber = idnumber;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public CertificateType getCertificateType() {
        return certificateType;
    }

    public void setCertificateType(CertificateType certificateType) {
        this.certificateType = certificateType;
    }

}

